package com.pucong.gitee.database.backup.common.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pucong.gitee.database.backup.common.selfenum.TreeType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* @author pucong
* @company gitee.com/pucong
* @create 2020-12-01
*/
@Data
@TableName("SYS_ROLE_RESOURCE")
@ApiModel("角色资源信息")
public class SysRoleResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uuid",type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String uuid;

    @TableField("ROLE_ID")
    @ApiModelProperty("角色id")
    private String roleId;

    @TableField("RESOURCE_ID")
    @ApiModelProperty("资源id")
    private String resourceId;

    @TableField("RESOURCE_TYPE")
    @ApiModelProperty("资源类型 0库 1服务器 2文件服务")
    private TreeType resourceType;

    @TableField("create_time")
    @ApiModelProperty("创建日期")
    private Date createTime;

    @TableField("create_by")
    @ApiModelProperty("创建人id")
    private String createBy;
}
